#ifndef __point_H
#define __point_H
#ifdef __cplusplus
extern "C" {
#endif

#define POINTS_NUM 200 
typedef struct point
{
  float x;
  float y;
  int speed;
  float direct;
  float target_angle;
}Point;

extern float left_point_x, left_point_y;
extern float side_left_laser_data, left_laser_data;
extern float right_point_x, right_point_y;
extern int left_conveyor_belt_pos;

extern float side_right_laser_data, right_laser_data;
extern float left_PM_point_x, left_PM_point_y;
extern float right_PM_point_x, right_PM_point_y;
extern int right_conveyor_belt_pos;

extern Point points_pos_test[POINTS_NUM];
extern Point points_pos_start_to_left[POINTS_NUM];
extern Point points_pos_left_to_right[POINTS_NUM];
extern Point points_pos_right_to_end[POINTS_NUM];

extern Point points_pos_start_to_right[POINTS_NUM];
extern Point points_pos_right_to_left[POINTS_NUM];
extern Point points_pos_left_to_end[POINTS_NUM];

extern int start_to_left_num;
extern int left_to_right_num;
extern int right_to_end_num;
extern int start_to_right_num;
extern int right_to_left_num;
extern int left_to_end_num;
#ifdef __cplusplus
}
#endif
#endif /*__ points_H */